home *** CD-ROM | disk | FTP | other *** search
/ Champak 43 / Vol 43.iso / games / superdog.swf / scripts / DefineSprite_1025 / frame_1 / DoAction.as
Encoding:
Text File  |  2007-06-25  |  442 b   |  25 lines

  1. stop();
  2. onEnterFrame = function()
  3. {
  4.    switch(_parent.manHp)
  5.    {
  6.       case 5:
  7.          this.gotoAndStop(5);
  8.          break;
  9.       case 4:
  10.          this.gotoAndStop(6);
  11.          break;
  12.       case 3:
  13.          this.gotoAndStop(1);
  14.          break;
  15.       case 2:
  16.          this.gotoAndStop(2);
  17.          break;
  18.       case 1:
  19.          this.gotoAndStop(3);
  20.          break;
  21.       case 0:
  22.          this.gotoAndStop(4);
  23.    }
  24. };
  25.